how to handle multiple exceptions with single except clause in python